package com.bolun998300.personal_blog_springboot.dao;

import com.bolun998300.personal_blog_springboot.pojo.Menu;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MenuDao extends JpaRepository<Menu,Integer> {
    public List<Menu> findByMenuIsParentOrderById(Boolean menuIsParent);
    public List<Menu> findByMenuParentIdOrderById(Integer menuParentId);
}
